﻿using System;
using System.Collections.Generic;
using com.gexin.rp.sdk.dto;

namespace com.igetui.api.openservice.igetui.template
{
	// Token: 0x02000047 RID: 71
	public class LinkTemplate : AbstractTemplate
	{
		// Token: 0x1700023E RID: 574
		// (get) Token: 0x06000541 RID: 1345 RVA: 0x0000C765 File Offset: 0x0000A965
		// (set) Token: 0x06000542 RID: 1346 RVA: 0x0000C76D File Offset: 0x0000A96D
		public bool IsRing
		{
			get
			{
				return this.isRing;
			}
			set
			{
				this.isRing = value;
			}
		}

		// Token: 0x1700023F RID: 575
		// (get) Token: 0x06000543 RID: 1347 RVA: 0x0000C776 File Offset: 0x0000A976
		// (set) Token: 0x06000544 RID: 1348 RVA: 0x0000C77E File Offset: 0x0000A97E
		public bool IsVibrate
		{
			get
			{
				return this.isVibrate;
			}
			set
			{
				this.isVibrate = value;
			}
		}

		// Token: 0x17000240 RID: 576
		// (get) Token: 0x06000545 RID: 1349 RVA: 0x0000C787 File Offset: 0x0000A987
		// (set) Token: 0x06000546 RID: 1350 RVA: 0x0000C78F File Offset: 0x0000A98F
		public bool IsClearable
		{
			get
			{
				return this.isClearable;
			}
			set
			{
				this.isClearable = value;
			}
		}

		// Token: 0x17000241 RID: 577
		// (get) Token: 0x06000547 RID: 1351 RVA: 0x0000C798 File Offset: 0x0000A998
		// (set) Token: 0x06000548 RID: 1352 RVA: 0x0000C79F File Offset: 0x0000A99F
		public string Text
		{
			get
			{
				return LinkTemplate.text;
			}
			set
			{
				LinkTemplate.text = value;
			}
		}

		// Token: 0x17000242 RID: 578
		// (get) Token: 0x06000549 RID: 1353 RVA: 0x0000C7A7 File Offset: 0x0000A9A7
		// (set) Token: 0x0600054A RID: 1354 RVA: 0x0000C7AE File Offset: 0x0000A9AE
		public string Title
		{
			get
			{
				return LinkTemplate.title;
			}
			set
			{
				LinkTemplate.title = value;
			}
		}

		// Token: 0x17000243 RID: 579
		// (get) Token: 0x0600054B RID: 1355 RVA: 0x0000C7B6 File Offset: 0x0000A9B6
		// (set) Token: 0x0600054C RID: 1356 RVA: 0x0000C7BD File Offset: 0x0000A9BD
		public string Logo
		{
			get
			{
				return LinkTemplate.logo;
			}
			set
			{
				LinkTemplate.logo = value;
			}
		}

		// Token: 0x17000244 RID: 580
		// (get) Token: 0x0600054D RID: 1357 RVA: 0x0000C7C5 File Offset: 0x0000A9C5
		// (set) Token: 0x0600054E RID: 1358 RVA: 0x0000C7CC File Offset: 0x0000A9CC
		public string LogoURL
		{
			get
			{
				return LinkTemplate.logoURL;
			}
			set
			{
				LinkTemplate.logoURL = value;
			}
		}

		// Token: 0x17000245 RID: 581
		// (get) Token: 0x0600054F RID: 1359 RVA: 0x0000C7D4 File Offset: 0x0000A9D4
		// (set) Token: 0x06000550 RID: 1360 RVA: 0x0000C7DB File Offset: 0x0000A9DB
		public string Url
		{
			get
			{
				return LinkTemplate.url;
			}
			set
			{
				LinkTemplate.url = value;
			}
		}

		// Token: 0x06000551 RID: 1361 RVA: 0x0000C7E4 File Offset: 0x0000A9E4
		protected override List<ActionChain> getActionChain()
		{
			List<ActionChain> list = new List<ActionChain>();
			ActionChain item = ActionChain.CreateBuilder().SetActionId(1).SetType(ActionChain.Types.Type.Goto).SetNext(10000).Build();
			ActionChain item2 = ActionChain.CreateBuilder().SetActionId(10000).SetType(ActionChain.Types.Type.notification).SetTitle(LinkTemplate.title).SetText(LinkTemplate.text).SetLogo(LinkTemplate.logo).SetLogoURL(LinkTemplate.logoURL).SetRing(this.isRing).SetClearable(this.isClearable).SetBuzz(this.isVibrate).SetNext(10010).Build();
			ActionChain item3 = ActionChain.CreateBuilder().SetActionId(10010).SetType(ActionChain.Types.Type.Goto).SetNext(10030).Build();
			ActionChain item4 = ActionChain.CreateBuilder().SetActionId(10030).SetType(ActionChain.Types.Type.startweb).SetUrl(LinkTemplate.url).SetNext(100).Build();
			ActionChain item5 = ActionChain.CreateBuilder().SetActionId(100).SetType(ActionChain.Types.Type.eoa).Build();
			list.Add(item);
			list.Add(item2);
			list.Add(item3);
			list.Add(item4);
			list.Add(item5);
			return list;
		}

		// Token: 0x06000552 RID: 1362 RVA: 0x0000C913 File Offset: 0x0000AB13
		public override string getPushType()
		{
			return "NotifyMsg";
		}

		// Token: 0x06000553 RID: 1363 RVA: 0x00008D7F File Offset: 0x00006F7F
		protected override int getTemplateId()
		{
			return 1;
		}

		// Token: 0x040002F5 RID: 757
		private static string text;

		// Token: 0x040002F6 RID: 758
		private static string title;

		// Token: 0x040002F7 RID: 759
		private static string logo = "";

		// Token: 0x040002F8 RID: 760
		private static string logoURL = "";

		// Token: 0x040002F9 RID: 761
		private static string url;

		// Token: 0x040002FA RID: 762
		private bool isRing = true;

		// Token: 0x040002FB RID: 763
		private bool isVibrate = true;

		// Token: 0x040002FC RID: 764
		private bool isClearable = true;
	}
}
